﻿<UserControl x:Class="SilverlightCalendar.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
	mc:Ignorable="d"
	Width="Auto" Height="Auto" Loaded="onLoaded" >
    <UserControl.Triggers>
        <EventTrigger >
            <EventTrigger.Actions>
        	    <BeginStoryboard>
                    <Storyboard x:Name="glass" RepeatBehavior="Forever">
                        <PointAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Glass" Storyboard.TargetProperty="(Shape.Fill).(LinearGradientBrush.StartPoint)">
                            <SplinePointKeyFrame KeyTime="00:00:00" Value="-0.399,5.634"/>
                            <SplinePointKeyFrame KeyTime="00:00:00.7000000" Value="1.194,5.505"/>
                            <SplinePointKeyFrame KeyTime="00:00:05.2000000" Value="1.194,5.505"/>
                            <SplinePointKeyFrame KeyTime="00:00:09.9000000" Value="1.194,5.505"/>
                        </PointAnimationUsingKeyFrames>
                        <PointAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Glass" Storyboard.TargetProperty="(Shape.Fill).(LinearGradientBrush.EndPoint)">
                            <SplinePointKeyFrame KeyTime="00:00:00" Value="0.575,-1.501"/>
                            <SplinePointKeyFrame KeyTime="00:00:00.7000000" Value="2.168,-1.63"/>
                            <SplinePointKeyFrame KeyTime="00:00:05.2000000" Value="2.168,-1.63"/>
                            <SplinePointKeyFrame KeyTime="00:00:09.9000000" Value="2.168,-1.63"/>
                        </PointAnimationUsingKeyFrames>
                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Glass" Storyboard.TargetProperty="(UIElement.Opacity)">
                            <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.26"/>
                            <SplineDoubleKeyFrame KeyTime="00:00:00.7000000" Value="0"/>
                            <SplineDoubleKeyFrame KeyTime="00:00:05.2000000" Value="0"/>
                            <SplineDoubleKeyFrame KeyTime="00:00:09.9000000" Value="0"/>
                        </DoubleAnimationUsingKeyFrames>
                    </Storyboard>
                </BeginStoryboard>
            </EventTrigger.Actions>
        </EventTrigger>
    </UserControl.Triggers>
	<Grid x:Name="LayoutRoot">
		<Grid.Resources>
			<Storyboard x:Name="TemplateThumbIn">
				<DoubleAnimation Storyboard.TargetName="TemplateListContainer" Storyboard.TargetProperty="Opacity" From="0.0" To="1.0" Duration="0:0:1"/>
			</Storyboard>
			<Storyboard x:Name="AdjustCalendarLoc"/>
			<Storyboard x:Name="ColorBoxAnimation1">
				<DoubleAnimation Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" To="1.3" Duration="0:0:0.1"/>
				<DoubleAnimation Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)" To="1.3" Duration="0:0:0.1"/>
			</Storyboard>
			<Storyboard x:Name="ColorBoxAnimation2">
				<DoubleAnimation Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" To="1" Duration="0:0:0.1"/>
				<DoubleAnimation Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)" To="1" Duration="0:0:0.1"/>
			</Storyboard>
			<Storyboard x:Name="MainBgStoryboard" Storyboard.TargetName="MainBackgroundColor" Storyboard.TargetProperty="Color">
				<ColorAnimation x:Name="MainBgColorAnimation" Duration="0:0:0.3"/>
			</Storyboard>
		</Grid.Resources>
		<Grid.Background>
            <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                <GradientStop Color="#E44682B4" Offset="0.0"/>
                <GradientStop x:Name="MainBackgroundColor" Color="LightGray"  Offset="0.6"/>
                <GradientStop Color="#FFFFFFFF" Offset="1.0"/>
            </LinearGradientBrush>
			<!--<LinearGradientBrush>				
				<GradientStop  Color="#E44682B4" Offset="0.022"/>
				<GradientStop Color="#E587CEEB" Offset="0.728"/>
				<GradientStop  Color="#E5ADD8E6" Offset="0.536"/>
			</LinearGradientBrush>-->
		</Grid.Background>
    	<StackPanel HorizontalAlignment="Center" Width="Auto" d:LayoutOverrides="Height">
    		<StackPanel Height="Auto" Orientation="Horizontal" HorizontalAlignment="Center" Margin="0,50,0,0">
    			<Grid Height="56" Width="324" HorizontalAlignment="Stretch">
    				<TextBlock Opacity="0.5" FontFamily="./Fonts/Fonts.zip#Segoe Condensed" FontSize="48" FontStretch="Normal" FontWeight="Light" TextWrapping="Wrap" Foreground="#FF000000" Text="Silverlight" Width="Auto" Height="Auto" Margin="0,0,0,0"/>
    				<TextBlock Opacity="1" FontFamily="./Fonts/Fonts.zip#Segoe Condensed" FontSize="48" FontStretch="Normal" TextWrapping="Wrap" Foreground="#FF000000" Text="Calendar" Width="156" Height="Auto" HorizontalAlignment="Right" d:IsStaticText="True" Margin="0,0,0,0"/>
    			</Grid>
    		</StackPanel>
    		<Grid x:Name="CalendarDetailContainer" Background="{x:Null}" Margin="0,15,0,0" >
    			<Grid Margin="0,0,0,0" VerticalAlignment="Center" d:LayoutOverrides="Width">
    				<Canvas x:Name="cvsMain" Width="415">
    					<Rectangle Stroke="Transparent"  RadiusX="28.5" RadiusY="28.5" x:Name="clockFrame" Width="415" Height="310">
				
    						<Rectangle.Fill>
    							<LinearGradientBrush EndPoint="0.474999994039536,1.06200003623962" StartPoint="0.469999998807907,-0.0320000015199184">
    								<GradientStop  Color="#E51C272B" Offset="0.339"/>
    								<GradientStop  Color="#E4184468" Offset="0.259"/>
    							</LinearGradientBrush>
    						</Rectangle.Fill>
    					</Rectangle>
    					<Rectangle Width="393" Height="62" RadiusX="87.5" RadiusY="14.5" x:Name="outsideBevel" Stroke="#FF848484" StrokeThickness="2" Canvas.Left="12" Canvas.Top="13"/>
    					<Rectangle Width="391" Height="60" RadiusX="87.5" RadiusY="14.5" x:Name="insideBevel" Stroke="#FF575757" StrokeThickness="2" Fill="#FFCAE2F0" Canvas.Left="13" Canvas.Top="13.5"/>
    					<Border Height="58" Width="372" Canvas.Left="22" Canvas.Top="15" MaxWidth="372" MaxHeight="60">
    						<TextBlock Text="February 2009" TextWrapping="Wrap" FontSize="47.5" Foreground="#FF364D59" Width="Auto" TextAlignment="Center" x:Name="ScreenTextBlock" VerticalAlignment="Top" HorizontalAlignment="Center" FontFamily="./Fonts/Fonts.zip#Segoe Condensed" FontWeight="Light" FontStretch="Normal"/>
    					</Border>
    				</Canvas>
    				<StackPanel Margin="6.5,94,6.5,10">
    					<Canvas Height="206" x:Name="CalendarDaysContainer" Width="373" Background="{x:Null}"/>
    				</StackPanel>
    				<Canvas x:Name="MonthNavContainer" Height="20" Background="Transparent" Opacity="1" Margin="22.5,37,20.5,0" VerticalAlignment="Top">
    					<Polygon x:Name="btnPrev" Points="0,6 12,0 12,12 0,6" Stroke="#FF676767" StrokeThickness="1" Cursor="Hand" MouseLeftButtonUp="PrevNavButtonClick" HorizontalAlignment="Left" Width="20" Height="20">
    						<Polygon.Fill>
    							<SolidColorBrush Color="#FF364D59" Opacity="0.4"/>
    						</Polygon.Fill>
    					</Polygon>
    					<Polygon x:Name="btnNext" Points="0,0 12,6 0,12 0,0" Stroke="#FF676767" StrokeThickness="1" Cursor="Hand" MouseLeftButtonUp="NextNavButtonClick" HorizontalAlignment="Right" Canvas.Left="359" Width="20" Height="20" VerticalAlignment="Center">
    						<Polygon.Fill>
    							<SolidColorBrush Color="#FF364D59" Opacity="0.4"/>
    						</Polygon.Fill>
    					</Polygon>
    				</Canvas>
    				<Canvas x:Name="BackgroundSelectContainer" Margin="0,0,174,7" VerticalAlignment="Bottom" Height="22" HorizontalAlignment="Right"/>

    			</Grid>
    		</Grid>
    		
    		<StackPanel Height="21" Width="Auto" Margin="10" Orientation="Horizontal" HorizontalAlignment="Center">
    			<TextBlock Opacity="0.495" FontFamily="./Fonts/Fonts.zip#Segoe Condensed" FontSize="16" FontStretch="Normal" FontWeight="Light" TextWrapping="Wrap" Foreground="#FF000000" Text="muradmohdzain.spaces.live.com" Height="21" Width="Auto" d:IsStaticText="True"/>
    		</StackPanel>
    	</StackPanel>
    	<Path Stretch="Fill" Stroke="#FF000000" StrokeThickness="0" Data="M4.9999952,1.1368684E-13 L995,1.1368684E-13 C997.76141,-5.9604633E-07 1000,2.2385757 1000,4.9999952 L1000,84.833 L1000,90.000008 L1000,95 L995,95 L4.9999952,95 L0,95 L0,90.000008 L0,84.833 L0,4.9999952 C0,2.2385757 2.2385762,-5.9604633E-07 4.9999952,1.1368684E-13 z" Opacity="0.065" x:Name="Glass" Width="415" Height="47" VerticalAlignment="Top" Margin="0,58,0,0">
    		<Path.Fill>
    			<LinearGradientBrush EndPoint="1.523,-1.604" StartPoint="0.549,5.531">
    				<GradientStop Color="#01FFFFFF" Offset="0.992"/>
    				<GradientStop Color="#00FFFDFD" Offset="0"/>
    				<GradientStop Color="#00FFFDFD" Offset="0.286"/>
    				<GradientStop Color="#FFFFFDFD" Offset="0.298"/>
    				<GradientStop Color="#FEFEFDFD" Offset="0.346"/>
    				<GradientStop Color="#00FEFDFD" Offset="0.37"/>
    				<GradientStop Color="#FFFFFDFD" Offset="0.065"/>
    				<GradientStop Color="#00FFFCFC" Offset="0.1"/>
    				<GradientStop Color="#7EFEFDFD" Offset="0.441"/>
    				<GradientStop Color="#00FEFDFD" Offset="0.477"/>
    				<GradientStop Color="#00FEFDFD" Offset="0.531"/>
    				<GradientStop Color="#00FEFDFD" Offset="0.382"/>
    			</LinearGradientBrush>
    		</Path.Fill>
    	</Path>
	</Grid>
</UserControl>
